gtk4.git
15 years agoGtkCssProvider: Add a default border color for insensitive elements.
Carlos Garnacho [Wed, 24 Nov 2010 00:10:38 +0000 (01:10 +0100)]
GtkCssProvider: Add a default border color for insensitive elements.

15 years agoIllustrate extension rendering
Matthias Clasen [Tue, 23 Nov 2010 23:00:43 +0000 (18:00 -0500)]
Illustrate extension rendering

15 years agoAdd slider illustration
Matthias Clasen [Tue, 23 Nov 2010 22:38:28 +0000 (17:38 -0500)]
Add slider illustration

15 years agoAdd an activity example
Matthias Clasen [Tue, 23 Nov 2010 22:00:20 +0000 (17:00 -0500)]
Add an activity example

This doesn't work, since it trips up on num-steps not being
available for GtkEventBox.

15 years agoAdd examples for frame rendering
Matthias Clasen [Tue, 23 Nov 2010 21:35:28 +0000 (16:35 -0500)]
Add examples for frame rendering

15 years agoAtempt to fix stretched 9slice rendering
Matthias Clasen [Tue, 23 Nov 2010 21:14:13 +0000 (16:14 -0500)]
Atempt to fix stretched 9slice rendering

15 years agoFix handling of junctions in frame drawing code
Matthias Clasen [Tue, 23 Nov 2010 21:13:15 +0000 (16:13 -0500)]
Fix handling of junctions in frame drawing code

15 years agoAdd a background example to the docs
Matthias Clasen [Tue, 23 Nov 2010 18:36:44 +0000 (13:36 -0500)]
Add a background example to the docs

15 years agoTest some wilder names for classes, etc
Matthias Clasen [Tue, 23 Nov 2010 18:34:48 +0000 (13:34 -0500)]
Test some wilder names for classes, etc

15 years agoAllow digits in selectors and values, where appropriate
Matthias Clasen [Tue, 23 Nov 2010 18:34:28 +0000 (13:34 -0500)]
Allow digits in selectors and values, where appropriate

15 years agoAdd the style example code used to generate illustrations
Matthias Clasen [Tue, 23 Nov 2010 16:30:17 +0000 (11:30 -0500)]
Add the style example code used to generate illustrations

15 years agoSome more images for gtk_render docs
Matthias Clasen [Tue, 23 Nov 2010 16:20:29 +0000 (11:20 -0500)]
Some more images for gtk_render docs

15 years agoDeclare transition and border-image properties to be writeonly
Matthias Clasen [Tue, 23 Nov 2010 13:24:49 +0000 (08:24 -0500)]
Declare transition and border-image properties to be writeonly

We don't make the types of their values public, so getting their
values is useless and will leak.

15 years agoImprove some gtk_render_ docs
Matthias Clasen [Tue, 23 Nov 2010 06:05:11 +0000 (01:05 -0500)]
Improve some gtk_render_ docs

With pictures !!

15 years agoDocument predefined style provider priorites
Matthias Clasen [Tue, 23 Nov 2010 04:01:27 +0000 (23:01 -0500)]
Document predefined style provider priorites

Also, rename GTK_STYLE_PROVIDER_PRIORITY_DEFAULT to _THEME and
use it for themes.

15 years agoFix doc formatting
Matthias Clasen [Tue, 23 Nov 2010 03:39:20 +0000 (22:39 -0500)]
Fix doc formatting

15 years agoFix resize grip drawing
Matthias Clasen [Tue, 23 Nov 2010 03:37:19 +0000 (22:37 -0500)]
Fix resize grip drawing

There was some confusion about junctions...

15 years agoFix GtkRadioButton drawing
Matthias Clasen [Tue, 23 Nov 2010 02:04:18 +0000 (21:04 -0500)]
Fix GtkRadioButton drawing

15 years agoMake unfocused selections visible in entries
Matthias Clasen [Tue, 23 Nov 2010 01:55:02 +0000 (20:55 -0500)]
Make unfocused selections visible in entries

15 years agoMake expanders prelight
Matthias Clasen [Mon, 22 Nov 2010 23:56:10 +0000 (18:56 -0500)]
Make expanders prelight

15 years agoRewrite GtkInfoBar color handling to bypass GtkStyle
Matthias Clasen [Mon, 22 Nov 2010 22:14:45 +0000 (17:14 -0500)]
Rewrite GtkInfoBar color handling to bypass GtkStyle

This avoids a segfault that was happening due to the recursion
detection not working anymore with the old way of doing things.

15 years agoGtkCssProvider: Render inconsistent toggle buttons differently.
Carlos Garnacho [Mon, 22 Nov 2010 20:47:11 +0000 (21:47 +0100)]
GtkCssProvider: Render inconsistent toggle buttons differently.

15 years agoGtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.
Carlos Garnacho [Mon, 22 Nov 2010 20:46:12 +0000 (21:46 +0100)]
GtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.

15 years agoGtkCssProvider: Use 1px border width for spinbutton buttons.
Carlos Garnacho [Mon, 22 Nov 2010 20:45:15 +0000 (21:45 +0100)]
GtkCssProvider: Use 1px border width for spinbutton buttons.

15 years agoGtkCssProvider: Render radio and check boxes framess in menus.
Carlos Garnacho [Mon, 22 Nov 2010 20:44:36 +0000 (21:44 +0100)]
GtkCssProvider: Render radio and check boxes framess in menus.

15 years agoGtkCssProvider: use selected fg/bg for selected menu items in CSS.
Carlos Garnacho [Mon, 22 Nov 2010 20:43:44 +0000 (21:43 +0100)]
GtkCssProvider: use selected fg/bg for selected menu items in CSS.

15 years agoGtkCssProvider: Draw frame around menubars and toolbars in default CSS.
Carlos Garnacho [Mon, 22 Nov 2010 20:42:30 +0000 (21:42 +0100)]
GtkCssProvider: Draw frame around menubars and toolbars in default CSS.

15 years agoMore documentation reshuffling
Matthias Clasen [Mon, 22 Nov 2010 20:12:42 +0000 (15:12 -0500)]
More documentation reshuffling

15 years agoTweak wording
Matthias Clasen [Mon, 22 Nov 2010 16:18:27 +0000 (11:18 -0500)]
Tweak wording

15 years agoDocument border images better
Matthias Clasen [Mon, 22 Nov 2010 16:15:47 +0000 (11:15 -0500)]
Document border images better

15 years agoMake url parsing work for slices
Matthias Clasen [Mon, 22 Nov 2010 14:03:07 +0000 (09:03 -0500)]
Make url parsing work for slices

The border-image parsing code relies on parse_path_str to return
a meaningful end_ptr in case of success, too.

15 years agoFix Gtk9Slice creation
Matthias Clasen [Mon, 22 Nov 2010 12:24:41 +0000 (07:24 -0500)]
Fix Gtk9Slice creation

15 years agoAllow / in values
Matthias Clasen [Mon, 22 Nov 2010 12:23:18 +0000 (07:23 -0500)]
Allow / in values

Otherwise, using url(path) on the right-hand side of properties
is not going to work.

15 years agoAdd some images to the docs
Matthias Clasen [Mon, 22 Nov 2010 06:41:45 +0000 (01:41 -0500)]
Add some images to the docs

Add graphs for the transition functions and gradient examples.

15 years agoGtkWidgetPath documentation tweaks
Matthias Clasen [Mon, 22 Nov 2010 02:50:43 +0000 (21:50 -0500)]
GtkWidgetPath documentation tweaks

15 years agoGtkStyleContext documentation tweaks
Matthias Clasen [Mon, 22 Nov 2010 02:50:12 +0000 (21:50 -0500)]
GtkStyleContext documentation tweaks

15 years agoDocument various style-related enums
Matthias Clasen [Mon, 22 Nov 2010 02:49:08 +0000 (21:49 -0500)]
Document various style-related enums

15 years agoGtkStyleContext: Use correct type for animation duration.
Carlos Garnacho [Mon, 22 Nov 2010 02:45:59 +0000 (03:45 +0100)]
GtkStyleContext: Use correct type for animation duration.

15 years agoGtkAnimationDescription: parse "loop" correctly.
Carlos Garnacho [Mon, 22 Nov 2010 02:43:56 +0000 (03:43 +0100)]
GtkAnimationDescription: parse "loop" correctly.

This sscanf parsing needs to go...

15 years agoGtkStyle: handle scales when translating the detail string.
Carlos Garnacho [Mon, 22 Nov 2010 01:40:05 +0000 (02:40 +0100)]
GtkStyle: handle scales when translating the detail string.

15 years agoGtkCssProvider: Handle progressbars.
Carlos Garnacho [Mon, 22 Nov 2010 01:39:41 +0000 (02:39 +0100)]
GtkCssProvider: Handle progressbars.

15 years agoGtkCssProvider: Do not have border-color the same than active bg-color.
Carlos Garnacho [Mon, 22 Nov 2010 01:39:11 +0000 (02:39 +0100)]
GtkCssProvider: Do not have border-color the same than active bg-color.

15 years agoGtkMenu: Use GtkStyleContext for rendering.
Carlos Garnacho [Sun, 21 Nov 2010 18:40:28 +0000 (19:40 +0100)]
GtkMenu: Use GtkStyleContext for rendering.

15 years agoGtkMenuBar: Use GtkStyleContext for rendering.
Carlos Garnacho [Sun, 21 Nov 2010 18:38:52 +0000 (19:38 +0100)]
GtkMenuBar: Use GtkStyleContext for rendering.

15 years agoUse gtk_render_activity() when rendering progressbars through GtkStyle
Carlos Garnacho [Sun, 21 Nov 2010 18:38:07 +0000 (19:38 +0100)]
Use gtk_render_activity() when rendering progressbars through GtkStyle

15 years agoGtkCssProvider: Use default value when handling "none".
Carlos Garnacho [Sun, 21 Nov 2010 18:36:59 +0000 (19:36 +0100)]
GtkCssProvider: Use default value when handling "none".

This way the default value has a way to override other values in previous
GtkStyleProviders when merged.

15 years agoAdd GtkStyleProperties to the docs
Matthias Clasen [Sun, 21 Nov 2010 23:00:30 +0000 (18:00 -0500)]
Add GtkStyleProperties to the docs

15 years agoDocumentation improvements
Matthias Clasen [Sat, 20 Nov 2010 05:22:29 +0000 (00:22 -0500)]
Documentation improvements

This patch adds more detail to the explanation of CSS, and also
adds documentation about which files are read.

We also make :focus an alternative to :focused (since :focus is
a standard CSS pseudo-class).

15 years agoAdapt testgtk.css to parser changes
Matthias Clasen [Fri, 19 Nov 2010 22:07:09 +0000 (17:07 -0500)]
Adapt testgtk.css to parser changes

15 years agoGtkCssProvider: Base prelight foreground on bg color.
Carlos Garnacho [Fri, 19 Nov 2010 21:46:07 +0000 (22:46 +0100)]
GtkCssProvider: Base prelight foreground on bg color.

Entries are also handled, so base/text colors are used.

15 years agoGtkCssProvider: Make prelight a bit less light in default CSS.
Carlos Garnacho [Fri, 19 Nov 2010 21:45:35 +0000 (22:45 +0100)]
GtkCssProvider: Make prelight a bit less light in default CSS.

15 years agoGtkStyle: Fix typo.
Carlos Garnacho [Fri, 19 Nov 2010 19:54:13 +0000 (20:54 +0100)]
GtkStyle: Fix typo.

GtkStateType was being used in gtk_style_context_get(), instead of
GtkStateFlags, oops.

15 years agoGtkThemingEngine: Make render_option() depend on border-style and border-color.
Carlos Garnacho [Fri, 19 Nov 2010 19:17:18 +0000 (20:17 +0100)]
GtkThemingEngine: Make render_option() depend on border-style and border-color.

15 years agoGtkRadioButton: Use GtkStyleContext for rendering.
Carlos Garnacho [Fri, 19 Nov 2010 19:14:51 +0000 (20:14 +0100)]
GtkRadioButton: Use GtkStyleContext for rendering.

15 years agoMake "button" class depend on mode for GtkToggleButtons
Carlos Garnacho [Fri, 19 Nov 2010 18:56:25 +0000 (19:56 +0100)]
Make "button" class depend on mode for GtkToggleButtons

15 years agoFix checkbuttons theming in CSS so it's more similar to 2.x
Carlos Garnacho [Fri, 19 Nov 2010 18:20:12 +0000 (19:20 +0100)]
Fix checkbuttons theming in CSS so it's more similar to 2.x

15 years agoGtkCheckButton: Use GtkStyleContext for rendering.
Carlos Garnacho [Fri, 19 Nov 2010 18:19:42 +0000 (19:19 +0100)]
GtkCheckButton: Use GtkStyleContext for rendering.

15 years agoGtkThemingEngine: Make render_check() depend on border-style and border-color.
Carlos Garnacho [Fri, 19 Nov 2010 18:18:20 +0000 (19:18 +0100)]
GtkThemingEngine: Make render_check() depend on border-style and border-color.

15 years agoGtkContainer: Also copy permanent container's classes on get_path_for_child()
Carlos Garnacho [Fri, 19 Nov 2010 18:02:27 +0000 (19:02 +0100)]
GtkContainer: Also copy permanent container's classes on get_path_for_child()

This makes inheritance work for the simplest cases when style is defined
for classes.

15 years agoGtkWidgetPath: Make iter API deal with gints.
Carlos Garnacho [Fri, 19 Nov 2010 17:59:49 +0000 (18:59 +0100)]
GtkWidgetPath: Make iter API deal with gints.

now gtk_widget_path_iter_* takes gints instead of guints, and also accept
numbers == -1 or > path_length for the path head.

15 years agoGtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.
Carlos Garnacho [Fri, 19 Nov 2010 17:58:19 +0000 (18:58 +0100)]
GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.

It's senseless to always return 0

15 years agoGtkStyleContext: preserve state on save().
Carlos Garnacho [Fri, 19 Nov 2010 17:53:34 +0000 (18:53 +0100)]
GtkStyleContext: preserve state on save().

15 years agoGtkThemingEngine: Documents that engines must only use this API.
Carlos Garnacho [Fri, 29 Oct 2010 18:17:03 +0000 (14:17 -0400)]
GtkThemingEngine: Documents that engines must only use this API.

It was a bit unclear in the documentation, even if it was from the
API POV.

15 years agoAdd tests for matching
Matthias Clasen [Fri, 19 Nov 2010 04:45:42 +0000 (23:45 -0500)]
Add tests for matching

These tests try to decipher how specificity works for selectors.

15 years agoCopy GtkWidgetPaths correctly
Matthias Clasen [Fri, 19 Nov 2010 04:35:00 +0000 (23:35 -0500)]
Copy GtkWidgetPaths correctly

The code was forgetting to copy class information.

15 years agoMore css parsing tests
Matthias Clasen [Fri, 19 Nov 2010 00:18:09 +0000 (19:18 -0500)]
More css parsing tests

15 years agoA little closer to css
Matthias Clasen [Thu, 18 Nov 2010 23:36:08 +0000 (18:36 -0500)]
A little closer to css

Declarations are ;-separated, but there is no ; required after
the last declaration. We harmlessly accept either.

15 years agodocs: Refer to gtk_paint_*() instead draw_*() vfuncs in the migration guide
Javier Jardón [Thu, 18 Nov 2010 17:55:25 +0000 (18:55 +0100)]
docs: Refer to gtk_paint_*() instead draw_*() vfuncs in the migration guide

15 years agoSome css parsing tests
Matthias Clasen [Thu, 18 Nov 2010 07:00:53 +0000 (02:00 -0500)]
Some css parsing tests

15 years agoWork harder at parsing import statements
Matthias Clasen [Thu, 18 Nov 2010 06:59:27 +0000 (01:59 -0500)]
Work harder at parsing import statements

Also, turn g_warning() into g_message() for now, so that tests
don't abort. Eventually, this needs to all go into GErrors.

15 years agoMove import syntax closer to css
Matthias Clasen [Thu, 18 Nov 2010 06:25:41 +0000 (01:25 -0500)]
Move import syntax closer to css

Css allows @import url ("foo.css") or @import "foo.css" or
@import url ('foo.css') but not @import url(foo.css) or @immport foo.css.

15 years agoSome error reporting
Matthias Clasen [Thu, 18 Nov 2010 03:29:39 +0000 (22:29 -0500)]
Some error reporting

When we take a GError argument, better use it.

15 years agoFix prototype of gtk_css_style_provider_load_from_data
Matthias Clasen [Thu, 18 Nov 2010 01:24:18 +0000 (20:24 -0500)]
Fix prototype of gtk_css_style_provider_load_from_data

GError arguments must be **.

15 years agoAdd an outline around menu popups
Matthias Clasen [Wed, 17 Nov 2010 06:39:03 +0000 (01:39 -0500)]
Add an outline around menu popups

15 years agoTransform the 'menu' detail string to the 'popup' class
Matthias Clasen [Wed, 17 Nov 2010 06:38:40 +0000 (01:38 -0500)]
Transform the 'menu' detail string to the 'popup' class

15 years agoFix prelighting of inconsistent radio and check buttons
Matthias Clasen [Wed, 17 Nov 2010 06:04:14 +0000 (01:04 -0500)]
Fix prelighting of inconsistent radio and check buttons

15 years agoFix the resize handle drawing
Matthias Clasen [Wed, 17 Nov 2010 05:44:36 +0000 (00:44 -0500)]
Fix the resize handle drawing

15 years agoHandle float and uint style properties
Matthias Clasen [Wed, 17 Nov 2010 05:21:21 +0000 (00:21 -0500)]
Handle float and uint style properties

These were giving errors in testgtk.

15 years agoRemove debug output
Matthias Clasen [Wed, 17 Nov 2010 04:09:32 +0000 (23:09 -0500)]
Remove debug output

15 years agoFix a typo
Matthias Clasen [Wed, 17 Nov 2010 04:03:21 +0000 (23:03 -0500)]
Fix a typo

15 years agoMake frames visible by default
Matthias Clasen [Wed, 17 Nov 2010 04:02:59 +0000 (23:02 -0500)]
Make frames visible by default

15 years agoFix a memory leak
Matthias Clasen [Wed, 17 Nov 2010 02:50:56 +0000 (21:50 -0500)]
Fix a memory leak

15 years agoTranslate detail strings for radio buttons
Matthias Clasen [Wed, 17 Nov 2010 02:50:04 +0000 (21:50 -0500)]
Translate detail strings for radio buttons

15 years agoGtkThemingEngine: remove unused code
Carlos Garnacho [Wed, 17 Nov 2010 01:59:19 +0000 (02:59 +0100)]
GtkThemingEngine: remove unused code

15 years agoFix compile warnings
Carlos Garnacho [Wed, 17 Nov 2010 01:56:49 +0000 (02:56 +0100)]
Fix compile warnings

15 years agoGtkStyleProvider: Pass a GParamSpec in get_style_property().
Carlos Garnacho [Wed, 17 Nov 2010 01:42:27 +0000 (02:42 +0100)]
GtkStyleProvider: Pass a GParamSpec in get_style_property().

This is so we can know the owner type of the property, and matching
with the stored strings in GtkCssProvider is direct.

15 years agoGtkStyleContext: Also use screen providers for widget style properties.
Carlos Garnacho [Wed, 17 Nov 2010 01:41:54 +0000 (02:41 +0100)]
GtkStyleContext: Also use screen providers for widget style properties.

15 years agoHandle menuitem detail string better.
Carlos Garnacho [Wed, 17 Nov 2010 01:40:21 +0000 (02:40 +0100)]
Handle menuitem detail string better.

15 years agoGtkSettings: install theme CSS with a lower priority.
Carlos Garnacho [Wed, 17 Nov 2010 01:39:17 +0000 (02:39 +0100)]
GtkSettings: install theme CSS with a lower priority.

This is so GtkSettings has an opportunity to modify theme colors.

15 years agoAdd corners to GtkJunctionSides, defining sides as 2 corners.
Carlos Garnacho [Wed, 17 Nov 2010 01:38:31 +0000 (02:38 +0100)]
Add corners to GtkJunctionSides, defining sides as 2 corners.

15 years agoDon't whine about expander-style missing
Matthias Clasen [Tue, 16 Nov 2010 12:52:27 +0000 (07:52 -0500)]
Don't whine about expander-style missing

This check was lost in the GtkStyleContext porting.

15 years agoGtkCssProvider: theme notebooks.
Carlos Garnacho [Mon, 15 Nov 2010 22:28:53 +0000 (23:28 +0100)]
GtkCssProvider: theme notebooks.

15 years agoGtkThemingEngine: Use border settings on render_extension/frame_gap()
Carlos Garnacho [Mon, 15 Nov 2010 22:28:06 +0000 (23:28 +0100)]
GtkThemingEngine: Use border settings on render_extension/frame_gap()

15 years agoGtkStyle: transform tabs' detail string.
Carlos Garnacho [Mon, 15 Nov 2010 22:27:44 +0000 (23:27 +0100)]
GtkStyle: transform tabs' detail string.

15 years agoGtkThemingEngine: Do not use possible reserved word.
Carlos Garnacho [Sun, 14 Nov 2010 18:47:09 +0000 (19:47 +0100)]
GtkThemingEngine: Do not use possible reserved word.

15 years agotestgtk: Try to locate the right file.
Carlos Garnacho [Sat, 13 Nov 2010 22:18:44 +0000 (23:18 +0100)]
testgtk: Try to locate the right file.

15 years agoFix gtk_css_provider_get_named() docs.
Carlos Garnacho [Sat, 13 Nov 2010 21:57:49 +0000 (22:57 +0100)]
Fix gtk_css_provider_get_named() docs.

15 years agoGtkSettings: Keep right refcount of the theme provider.
Carlos Garnacho [Sat, 13 Nov 2010 21:36:22 +0000 (22:36 +0100)]
GtkSettings: Keep right refcount of the theme provider.

15 years agoGtkSettings: Ensure the theme CSS is loaded on startup.
Carlos Garnacho [Sat, 13 Nov 2010 21:35:58 +0000 (22:35 +0100)]
GtkSettings: Ensure the theme CSS is loaded on startup.

15 years agoGtkCssProvider: Fix typo in gtk_css_provider_get_named()
Carlos Garnacho [Sat, 13 Nov 2010 21:34:30 +0000 (22:34 +0100)]
GtkCssProvider: Fix typo in gtk_css_provider_get_named()

provider was being redefined in the inner block, so the loaded
provider didn't get to be returned.